﻿@using CoreData
@model Order
@{
    ViewBag.Title = "Order detail";
}
<div class="row-fluid">
    <div class="span12">
        <div class="head">
            <div class="isw-documents">
            </div>
            <h1>
                @ViewBag.Title</h1>
            <div class="clear">
            </div>
        </div>
        <div class="block-fluid tabs">
            <div class="warning-area">
            </div>
            @Html.HiddenFor(x => x.ID)
            <div class="row-form">
                <div class="span2">
                    Code</div>
                <div class="span9">
                    # @Html.DisplayTextFor(x => x.ID)</div>
                <div class="clear">
                </div>
            </div>
            <div class="row-form">
                <div class="span2">
                    Customer</div>
                <div class="span9">
                    @Html.DisplayTextFor(x => x.Name)</div>
                <div class="clear">
                </div>
            </div>
            <div class="row-form">
                <div class="span2">
                    Address</div>
                <div class="span9">
                    @Html.DisplayTextFor(x => x.Address)</div>
                <div class="clear">
                </div>
            </div>
            <div class="row-form">
                <div class="span2">
                    Phone</div>
                <div class="span9">
                    @Html.DisplayTextFor(x => x.Phone)</div>
                <div class="clear">
                </div>
            </div>
            <div class="row-form">
                <div class="span2">
                    Ship fee (USD)</div>
                <div class="span9">
                    @Html.DisplayTextFor(x => x.Ship_Fee)</div>
                <div class="clear">
                </div>
            </div>
            <div class="row-form">
                <div class="span2">
                    Create date</div>
                <div class="span9">
                    @Html.DisplayTextFor(x => x.CreateDate)</div>
                <div class="clear">
                </div>
            </div>
            <div class="row-form">
                <div class="span2">
                    Deliver date</div>
                <div class="span9">
                    @Html.HiddenFor(c => c.DateCompleted)
                    @if (Model.DateCompleted == DateTime.MinValue)
                    {
                        @Html.Label("Not Deliver")
                    }
                    else
                    {
                        @Html.DisplayTextFor(x => x.DateCompleted)
                    }
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="row-form">
                <div class="span2">
                    Total money</div>
                <div class="span9">
                    @Helper.StringHelper.FormatCurrencyUS(Model.TotalPrice)
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="row-form">
                <div class="span2">
                    Note</div>
                <div class="span9">
                    @Html.DisplayTextFor(x => x.Note)
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="row-form">
                <div class="span2">
                    Status :</div>
                <div class="span9">
                    @Html.HiddenFor(x => x.Active)
                    @Html.DropDownListFor(x => x.Status, Model.ListStatusExt, new { @class = "validate[required]", @disabled = "disabled" })
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
    </div>
</div>
